<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../Template/TemplateAdmin.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">



    <ui:define name="content">
        <center>
            <f:view>
                <h:form>
                    <h1><h:outputLabel value="WELCOME TO ADMIN WEB!"/></h1>
                    <p:panelGrid columns="2" style="width: 800px; border:none ">
                        <f:facet name="header">  
                            MY PROFILE  
                        </f:facet>
                        <p:outputLabel value="AccountID:" for="accountID" />
                        <p:inputText id="accountID" value="#{accountBean.profile.accountID}" title="AccountID" required="true" requiredMessage="The AccountID field is required."/>
                        <p:outputLabel value="FullName:" for="fullName" />
                        <p:inputText id="fullName" value="#{accountBean.profile.fullName}" title="FullName" />
                        <p:outputLabel value="TelephoneNumber:" for="telephoneNumber" />
                        <p:inputText id="telephoneNumber" value="#{accountBean.profile.telephoneNumber}" title="TelephoneNumber" />
                        <p:outputLabel value="Email:" for="email" />
                        <p:inputText id="email" value="#{accountBean.profile.email}" title="Email" />
                        <p:outputLabel value="RoleID:" for="roleID" />
                        <p:selectOneMenu id="roleID" value="#{accountBean.profile.roleID.roleID}" title="RoleID" >
                            <!-- TODO: update below reference to list of available items-->
                            <f:selectItems value="#{accountBean.roles}"/>
                        </p:selectOneMenu>
                        <p:outputLabel value="DepartmentID:" for="departmentID" />
                        <p:selectOneMenu id="departmentID" value="#{accountBean.profile.departmentID.departmentID}" title="DepartmentID" >
                            <!-- TODO: update below reference to list of available items-->
                            <f:selectItems value="#{accountBean.departements}"/>
                        </p:selectOneMenu>
              
                            <f:facet name="footer">  
                                <p:commandButton value="ManageAcount" action="#{accountBean.back()}" style="left: 350px"/>  
                            </f:facet>
    
                    </p:panelGrid>
                </h:form>
            </f:view>
        </center>
    </ui:define>


</ui:composition>
